package com.blog.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.blog.entity.Blog;

public interface BlogMapper {
	public Integer createBlog(Blog blog);
	
	public List<Map<String,Object>> getBolgs(Map<String,Object> map);
	
	public Blog getBolg(int blogId);
	
	public Integer saveBlog(Blog blog);
	
	public Integer delBlog(int blogId);
	
	public Set<String> selectTags(@Param("userName") String userName);
	
	public Integer getTagTotal(Map<String,String> map);
	
	public String getAllBlogTotal(String userName);
	
	public String getTagTotalByUserNameAndTag(Map<String,String> map);
}
